package com.core.java;

public class ConvertDataTypes {

	public static void main(String[] args) {
		// Downward Conversion 
		
		double doubleValue = 3.99;
		int intValue1 = (int)doubleValue;
		System.out.println("(Casting)Integer value of 3.99 is equal to " + intValue1);
		
		Double doubleObj = new Double(doubleValue);
		int intValue2 = doubleObj.intValue();
		System.out.println("(Helper Class)Integer value of 3.99 is equal to " + intValue2);
		

	}

}
